package com.mnsq.subject.bean.condition;

import com.mnsq.common.bean.condition.DocumentCondition;
import com.mnsq.common.bean.document.SubjectMg;

/**
 * @author 周俭
 */
public class MongoSubjectCondition extends DocumentCondition {
    /**
     * 简易策略模式
     *
     * @return
     */
    @Override
    public Class getDoc() {
        if (super.getName() != null) {
            switch (super.getName()) {
                case "SubjectMg":
                    return SubjectMg.class;
            }
        }
        return null;
    }
}
